package com.ponhu.ea2.stockcenter.provider.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;
import java.util.stream.Collectors;

public class RedisUtils {

    /**
     * 使用命名空间生成Redis的Key值
     *
     * @param keys
     * @return
     */
    public static String getRedisKey(String... keys) {

        return Arrays.stream(keys).filter(StringUtils::isNotEmpty).collect(Collectors.joining(":"));
    }

}
